<script language="C#" runat="server">	
	string uploadFolder = "upLoaded";
	private void Page_Load(object sender, System.EventArgs e){
		string path = Server.MapPath(uploadFolder);
		HttpPostedFile file = Request.Files["Filedata"];
		
		if (file != null && file.ContentLength > 0){  
			string savePath = path + "/" + Request.Form["filename"];
			file.SaveAs(savePath);
		}
	}
</script>